#include <stdio.h>

/**
 * if-else-if
 */
int main() {

	int option;

	printf("Please type 1, 2, or 3\n"
		   "1. Breakfast\n"
		   "2. Lunch\n"
		   "3. Dinner\n");
	scanf("%d", &option);

	// if-else-if 控制结构中，只有一个语句块被执行
	if (option == 1) {
		printf("Good morning\n"
			   "Order breakfast\n");
	}
	else if (option == 2) {
		printf("Good afternoon\n"
			   "Order lunch\n");
	}
	else if (option == 3) {
		printf("Good evening\n"
			   "Order dinner\n");
	}
	else {
		printf("Order nothing\n");
	}
}